export default {
	methods: {
		//页面跳转
		navTo(url, data, type) {
			const tabBarLinks = [
				'/pages/index/index',
				'/pages/user/index'
			];
			if (this.$utils.in_array(url, tabBarLinks)) {
				type = 'switchTab';
			}
			this.$u.route({
				type: type || 'navigateTo',
				url: url,
				params: data
			})
		}
	}
}
